<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/terrain.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/terrain.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;SDL/SDL.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;assert.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="tile_8h_source.html">tile.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="constante_8h_source.html">constante.h</a>&quot;</code><br/>
</div>
<p><a href="terrain_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTerrain.html">Terrain</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a56ef2a9cde9c1acbe909a52386494efe">terInit</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter n'a pas déjà été initialisé <br/>
 Postconditions : ter est initialisé  <a href="#a56ef2a9cde9c1acbe909a52386494efe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#ac7c9d2364473068750c955841822d483">terRemplirStruct</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : ter est remplis.  <a href="#ac7c9d2364473068750c955841822d483"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a64d164a1f0beb73c20ecea7528a1c5d3">setNbrTile</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, unsigned int nbrTile)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on change nbrTile.  <a href="#a64d164a1f0beb73c20ecea7528a1c5d3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a5cc963e0209d7d0d4aa6941a20f8be97">setDecalageX</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, int x)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on change decalageX.  <a href="#a5cc963e0209d7d0d4aa6941a20f8be97"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#ad72e6e17ff549435edf028a8dac3e9f5">setDefilY</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, int y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on change defilY.  <a href="#ad72e6e17ff549435edf028a8dac3e9f5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#abf6c41160daf296b8adcf853f2de98ae">setTileSel</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, unsigned int selec)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on change tileSel.  <a href="#abf6c41160daf296b8adcf853f2de98ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#aa78a3024689d2e9a1814d32c53116655">setHauteur</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, unsigned int hauteur)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on change hauteur.  <a href="#aa78a3024689d2e9a1814d32c53116655"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#af88ac718bc3e3b431765a2f7a9ab9403">setLargeur</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, unsigned int largeur)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on change largeur.  <a href="#af88ac718bc3e3b431765a2f7a9ab9403"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a4eb64002ece4632d08080102eb59251c">setTabChipset</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, int i, <a class="el" href="structTile.html">Tile</a> *tile)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé, 0 &lt;= i &lt;nbrTile <br/>
 Postconditions : on change la ième case de tabChipset.  <a href="#a4eb64002ece4632d08080102eb59251c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a16db0f7563d0f746c3ad954ef3f4754b">setCarte</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, int i, unsigned int numTile)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé, 0&lt;= i &lt; ter-&gt;hauteur*ter-&gt;largeur <br/>
 Postconditions : on change la ième case de la carte.  <a href="#a16db0f7563d0f746c3ad954ef3f4754b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#aa84b30e0322d4d70abb2afbb858e076a">setNumCarte</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, char i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé, 0&lt;= i &lt; ter-&gt;hauteur*ter-&gt;largeur <br/>
 Postconditions : on change le numero de la carte.  <a href="#aa84b30e0322d4d70abb2afbb858e076a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a13151e7f900c064bceadc6f00d0e81a1">getNumCarte</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé, 0&lt;= i &lt; ter-&gt;hauteur*ter-&gt;largeur <br/>
 Postconditions : on recupere le numero de la carte.  <a href="#a13151e7f900c064bceadc6f00d0e81a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#affbee348130b49f5d0179c2d910f3d29">getNbrTile</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on récupère nbrTile.  <a href="#affbee348130b49f5d0179c2d910f3d29"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a74451f81a980b96ff24d4ee9fa93e2c3">getDecalageX</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on récupère decalageX.  <a href="#a74451f81a980b96ff24d4ee9fa93e2c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a0e77dbe7ae981a0041f50598025f1946">getDefilY</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on récupère defilY.  <a href="#a0e77dbe7ae981a0041f50598025f1946"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#aef1ed673a4555bc3bce3009e2eda8778">getTileSel</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on récupère tileSel.  <a href="#aef1ed673a4555bc3bce3009e2eda8778"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a6b95110758fd3ce3e16035ccfd4064b2">getHauteur</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on récupère hauteur.  <a href="#a6b95110758fd3ce3e16035ccfd4064b2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#adae65551a5eacfd5a811560849b95e5c">getLargeur</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on récupère largeur.  <a href="#adae65551a5eacfd5a811560849b95e5c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structTile.html">Tile</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a6606e48fed6497746e1894e9d5d39471">getTabChipset</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé, 0 &lt;= i &lt;nbrTile <br/>
 Postconditions : on récupère le ième case de tabChipset.  <a href="#a6606e48fed6497746e1894e9d5d39471"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#ae6e653cd9e400541a92710a1e39fd67d">getCarte</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé, 0&lt;= i &lt; ter-&gt;hauteur*ter-&gt;largeur <br/>
 Postconditions : on récupère la ième case de la carte.  <a href="#ae6e653cd9e400541a92710a1e39fd67d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a94d8cda78cb565cee0d52ab54f4dcda3">terSauvegarde</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, char *nomChipset)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé, nomChipset est le même que celui chargé dans remplirStructTerrain, nomFIchier non null <br/>
 Postconditions : on sauvegarde la structure ter dans un fichier binaire nomFichier.  <a href="#a94d8cda78cb565cee0d52ab54f4dcda3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a3e7e9fbb1d028599836695cefa32ed49">terCharger</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter, char *nomFichier)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé, nomFichier non null et existe <br/>
 Postconditions : on charge le fihcier binaire nomFichier et on remplis la structure ter avec.  <a href="#a3e7e9fbb1d028599836695cefa32ed49"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="terrain_8h.html#a37dbda9207e6024fb29ab1c8306aa6d4">terLibere</a> (<a class="el" href="structTerrain.html">Terrain</a> *ter)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : ter est initialisé <br/>
 Postconditions : on libère ter.  <a href="#a37dbda9207e6024fb29ab1c8306aa6d4"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ae6e653cd9e400541a92710a1e39fd67d"></a><!-- doxytag: member="terrain.h::getCarte" ref="ae6e653cd9e400541a92710a1e39fd67d" args="(Terrain *ter, int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="terrain_8h.html#ae6e653cd9e400541a92710a1e39fd67d">getCarte</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé, 0&lt;= i &lt; ter-&gt;hauteur*ter-&gt;largeur <br/>
 Postconditions : on récupère la ième case de la carte. </p>

</div>
</div>
<a class="anchor" id="a74451f81a980b96ff24d4ee9fa93e2c3"></a><!-- doxytag: member="terrain.h::getDecalageX" ref="a74451f81a980b96ff24d4ee9fa93e2c3" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="terrain_8h.html#a74451f81a980b96ff24d4ee9fa93e2c3">getDecalageX</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on récupère decalageX. </p>

</div>
</div>
<a class="anchor" id="a0e77dbe7ae981a0041f50598025f1946"></a><!-- doxytag: member="terrain.h::getDefilY" ref="a0e77dbe7ae981a0041f50598025f1946" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="terrain_8h.html#a0e77dbe7ae981a0041f50598025f1946">getDefilY</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on récupère defilY. </p>

</div>
</div>
<a class="anchor" id="a6b95110758fd3ce3e16035ccfd4064b2"></a><!-- doxytag: member="terrain.h::getHauteur" ref="a6b95110758fd3ce3e16035ccfd4064b2" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="terrain_8h.html#a6b95110758fd3ce3e16035ccfd4064b2">getHauteur</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on récupère hauteur. </p>

</div>
</div>
<a class="anchor" id="adae65551a5eacfd5a811560849b95e5c"></a><!-- doxytag: member="terrain.h::getLargeur" ref="adae65551a5eacfd5a811560849b95e5c" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="terrain_8h.html#adae65551a5eacfd5a811560849b95e5c">getLargeur</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on récupère largeur. </p>

</div>
</div>
<a class="anchor" id="affbee348130b49f5d0179c2d910f3d29"></a><!-- doxytag: member="terrain.h::getNbrTile" ref="affbee348130b49f5d0179c2d910f3d29" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="terrain_8h.html#affbee348130b49f5d0179c2d910f3d29">getNbrTile</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on récupère nbrTile. </p>

</div>
</div>
<a class="anchor" id="a13151e7f900c064bceadc6f00d0e81a1"></a><!-- doxytag: member="terrain.h::getNumCarte" ref="a13151e7f900c064bceadc6f00d0e81a1" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="terrain_8h.html#a13151e7f900c064bceadc6f00d0e81a1">getNumCarte</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé, 0&lt;= i &lt; ter-&gt;hauteur*ter-&gt;largeur <br/>
 Postconditions : on recupere le numero de la carte. </p>

</div>
</div>
<a class="anchor" id="a6606e48fed6497746e1894e9d5d39471"></a><!-- doxytag: member="terrain.h::getTabChipset" ref="a6606e48fed6497746e1894e9d5d39471" args="(Terrain *ter, int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structTile.html">Tile</a>* <a class="el" href="terrain_8h.html#a6606e48fed6497746e1894e9d5d39471">getTabChipset</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé, 0 &lt;= i &lt;nbrTile <br/>
 Postconditions : on récupère le ième case de tabChipset. </p>

</div>
</div>
<a class="anchor" id="aef1ed673a4555bc3bce3009e2eda8778"></a><!-- doxytag: member="terrain.h::getTileSel" ref="aef1ed673a4555bc3bce3009e2eda8778" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="terrain_8h.html#aef1ed673a4555bc3bce3009e2eda8778">getTileSel</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on récupère tileSel. </p>

</div>
</div>
<a class="anchor" id="a16db0f7563d0f746c3ad954ef3f4754b"></a><!-- doxytag: member="terrain.h::setCarte" ref="a16db0f7563d0f746c3ad954ef3f4754b" args="(Terrain *ter, int i, unsigned int numTile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#a16db0f7563d0f746c3ad954ef3f4754b">setCarte</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>numTile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé, 0&lt;= i &lt; ter-&gt;hauteur*ter-&gt;largeur <br/>
 Postconditions : on change la ième case de la carte. </p>

</div>
</div>
<a class="anchor" id="a5cc963e0209d7d0d4aa6941a20f8be97"></a><!-- doxytag: member="terrain.h::setDecalageX" ref="a5cc963e0209d7d0d4aa6941a20f8be97" args="(Terrain *ter, int x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#a5cc963e0209d7d0d4aa6941a20f8be97">setDecalageX</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on change decalageX. </p>

</div>
</div>
<a class="anchor" id="ad72e6e17ff549435edf028a8dac3e9f5"></a><!-- doxytag: member="terrain.h::setDefilY" ref="ad72e6e17ff549435edf028a8dac3e9f5" args="(Terrain *ter, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#ad72e6e17ff549435edf028a8dac3e9f5">setDefilY</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on change defilY. </p>

</div>
</div>
<a class="anchor" id="aa78a3024689d2e9a1814d32c53116655"></a><!-- doxytag: member="terrain.h::setHauteur" ref="aa78a3024689d2e9a1814d32c53116655" args="(Terrain *ter, unsigned int hauteur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#aa78a3024689d2e9a1814d32c53116655">setHauteur</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>hauteur</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on change hauteur. </p>

</div>
</div>
<a class="anchor" id="af88ac718bc3e3b431765a2f7a9ab9403"></a><!-- doxytag: member="terrain.h::setLargeur" ref="af88ac718bc3e3b431765a2f7a9ab9403" args="(Terrain *ter, unsigned int largeur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#af88ac718bc3e3b431765a2f7a9ab9403">setLargeur</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>largeur</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on change largeur. </p>

</div>
</div>
<a class="anchor" id="a64d164a1f0beb73c20ecea7528a1c5d3"></a><!-- doxytag: member="terrain.h::setNbrTile" ref="a64d164a1f0beb73c20ecea7528a1c5d3" args="(Terrain *ter, unsigned int nbrTile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#a64d164a1f0beb73c20ecea7528a1c5d3">setNbrTile</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>nbrTile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on change nbrTile. </p>

</div>
</div>
<a class="anchor" id="aa84b30e0322d4d70abb2afbb858e076a"></a><!-- doxytag: member="terrain.h::setNumCarte" ref="aa84b30e0322d4d70abb2afbb858e076a" args="(Terrain *ter, char i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#aa84b30e0322d4d70abb2afbb858e076a">setNumCarte</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé, 0&lt;= i &lt; ter-&gt;hauteur*ter-&gt;largeur <br/>
 Postconditions : on change le numero de la carte. </p>

</div>
</div>
<a class="anchor" id="a4eb64002ece4632d08080102eb59251c"></a><!-- doxytag: member="terrain.h::setTabChipset" ref="a4eb64002ece4632d08080102eb59251c" args="(Terrain *ter, int i, Tile *tile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#a4eb64002ece4632d08080102eb59251c">setTabChipset</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structTile.html">Tile</a> *&#160;</td>
          <td class="paramname"><em>tile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé, 0 &lt;= i &lt;nbrTile <br/>
 Postconditions : on change la ième case de tabChipset. </p>

</div>
</div>
<a class="anchor" id="abf6c41160daf296b8adcf853f2de98ae"></a><!-- doxytag: member="terrain.h::setTileSel" ref="abf6c41160daf296b8adcf853f2de98ae" args="(Terrain *ter, unsigned int selec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#abf6c41160daf296b8adcf853f2de98ae">setTileSel</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>selec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on change tileSel. </p>

</div>
</div>
<a class="anchor" id="a3e7e9fbb1d028599836695cefa32ed49"></a><!-- doxytag: member="terrain.h::terCharger" ref="a3e7e9fbb1d028599836695cefa32ed49" args="(Terrain *ter, char *nomFichier)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#a3e7e9fbb1d028599836695cefa32ed49">terCharger</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>nomFichier</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé, nomFichier non null et existe <br/>
 Postconditions : on charge le fihcier binaire nomFichier et on remplis la structure ter avec. </p>

</div>
</div>
<a class="anchor" id="a56ef2a9cde9c1acbe909a52386494efe"></a><!-- doxytag: member="terrain.h::terInit" ref="a56ef2a9cde9c1acbe909a52386494efe" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#a56ef2a9cde9c1acbe909a52386494efe">terInit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter n'a pas déjà été initialisé <br/>
 Postconditions : ter est initialisé </p>
<dl class="author"><dt><b>Author:</b></dt><dd>RODARIE Dimitri, VERSAEVEL Romain, FLORES Isabelle </dd></dl>

</div>
</div>
<a class="anchor" id="a37dbda9207e6024fb29ab1c8306aa6d4"></a><!-- doxytag: member="terrain.h::terLibere" ref="a37dbda9207e6024fb29ab1c8306aa6d4" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#a37dbda9207e6024fb29ab1c8306aa6d4">terLibere</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : on libère ter. </p>

</div>
</div>
<a class="anchor" id="ac7c9d2364473068750c955841822d483"></a><!-- doxytag: member="terrain.h::terRemplirStruct" ref="ac7c9d2364473068750c955841822d483" args="(Terrain *ter)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#ac7c9d2364473068750c955841822d483">terRemplirStruct</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé <br/>
 Postconditions : ter est remplis. </p>
<p>On remplit tabChipset avec les différentes tiles du chipset</p>
<p>On crée la carte </p>

</div>
</div>
<a class="anchor" id="a94d8cda78cb565cee0d52ab54f4dcda3"></a><!-- doxytag: member="terrain.h::terSauvegarde" ref="a94d8cda78cb565cee0d52ab54f4dcda3" args="(Terrain *ter, char *nomChipset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="terrain_8h.html#a94d8cda78cb565cee0d52ab54f4dcda3">terSauvegarde</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTerrain.html">Terrain</a> *&#160;</td>
          <td class="paramname"><em>ter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>nomChipset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : ter est initialisé, nomChipset est le même que celui chargé dans remplirStructTerrain, nomFIchier non null <br/>
 Postconditions : on sauvegarde la structure ter dans un fichier binaire nomFichier. </p>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
